package com.zego.wawaji.base.utils;

import com.noble.library.basic.sp.PSP;

/**
 * 地址配置
 */
public class Hosts {

    // --------------------逻辑服务器地址 start-----------------------
    public static String NO_HOST = "no_host";

    public static final String SERVER_TYPE_KEY = "WWJ_SERVER_KEY";//正式服测试服切换存储key
    // 0-正式服，1-测试服，对应以上几个host-array的position
    public static int SERVER_TYPE = PSP.getInstance().getInt(SERVER_TYPE_KEY, 0);

    // TCP长连接
    public static final String[] TCP_HOST = {"yanyuan01.cn", "yanyuan01.cn"};
    public static final String[] TCP_PORT = {"8130", "8130"};
    public static String FATE_IT_TCP = TCP_HOST[SERVER_TYPE];                    //socket地址
    public static int FATE_IT_TCP_PORT = Integer.valueOf(TCP_PORT[SERVER_TYPE]);//socket端口

    // 消息地址
    public static final String[] MSG_HOST = {"http://msg.yanyuan01.cn/", "http://test.msg.yanyuan01.cn/"};
    public static String FATE_IT_MSG = MSG_HOST[SERVER_TYPE];           //消息地址

    // Http Go地址
    public static final String[] GO_HOST = {"http://api.yanyuan01.cn/", "http://test.api.yanyuan01.cn/"};
    public static String FATE_IT_GO = GO_HOST[SERVER_TYPE];           //go地址

    // OSS文件存储地址
    public static final String[] OSS_HOST = {"http://api.yanyuan01.cn/", "http://test.api.yanyuan01.cn/"};
    public static String FATE_IT_OSS = OSS_HOST[SERVER_TYPE];          //文件地址

    public static String HOST_URL = FATE_IT_GO;                     //默认host地址
}
